package cn.tedu.backend.portal.service.imp;

import cn.tedu.backend.portal.mapper.AttractionsMapper;
import cn.tedu.backend.portal.model.Attractions;
import cn.tedu.backend.portal.service.IAttractionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class AttractionsServiceImp extends ServiceImpl<AttractionsMapper, Attractions> implements IAttractionsService {
    @Resource
    private AttractionsMapper mapper;

    public List<Attractions> selectActivityCount() {
        return mapper.selectAttractions();
    }
    public List<Attractions> selectAttractionsById(int id) {
    return mapper.selectAttractionsById(id);
  }



//    public int selectVolunteerCount() {
//        return mapper.selectVolunteerCount();
//    }
//
//    public int selectOthersCount() {
//        return mapper.selectOthersCount();
//    }
}
